using System;
using System.Windows.Forms;
using System.Collections.Generic;
using System.Text;
using mvLibrary;
using mvLibrary.Controls;

namespace mvLibrary.Controls
{
    /// <summary>
    /// Clase que implementa DataGridViewCheckBoxColumn para pick
    /// </summary>
    public class mvCheckBoxColumn : DataGridViewCheckBoxColumn
    {
        public mvCheckBoxColumn() : base()
        {
        }
        #region Campos
        private int _attribute;
        private string _stringChecked = "S";
        private string _stringNotChecked = "N";
        #endregion 
        #region Propiedades (Deben incluirse en el  metodo Clone !)
        public int Attribute
        {
            get { return _attribute; }
            set { _attribute = value; }
        }
        public string StringChecked
        {
            get { return _stringChecked; }
            set { _stringChecked = value; }
        }
        public string StringNotChecked
        {
            get { return _stringNotChecked; }
            set { _stringNotChecked = value; }
        }
        #endregion propiedades
        public override DataGridViewCell CellTemplate
        {

            get
            {
                return base.CellTemplate;
            }
            set
            {

                base.CellTemplate = value;
            }
        }
 

        public override object Clone()
        {
            mvCheckBoxColumn BaseCol = base.Clone() as mvCheckBoxColumn;
            BaseCol.Attribute = _attribute;
            BaseCol.StringChecked = _stringChecked;
            BaseCol.StringNotChecked = _stringNotChecked;
            return BaseCol;
        }
    }
}
